package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-06
 */
@TableName("lg_read_record")
public class ReadRecord extends Model<ReadRecord> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer userid;
    private Integer chapterid;
    /**
     * 获得旗帜
     */
    private Integer flag;
    /**
     * 阅读时间
     */
    private Date createtime;
    private String remarks;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getChapterid() {
        return chapterid;
    }

    public void setChapterid(Integer chapterid) {
        this.chapterid = chapterid;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReadRecord{" +
        "id=" + id +
        ", userid=" + userid +
        ", chapterid=" + chapterid +
        ", flag=" + flag +
        ", createtime=" + createtime +
        ", remarks=" + remarks +
        "}";
    }
}
